<?php
/* @var $this EventController */
/* @var $model Event */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'event-form',
	'enableAjaxValidation'=>false,
	'htmlOptions' => array('enctype'=>'multipart/form-data'), 
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'companyid'); ?>
		<?php echo $form->textField($model,'companyid'); ?>
		<?php echo $form->error($model,'companyid'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'title'); ?>
		<?php echo $form->textField($model,'title',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'title'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'description'); ?>
		<?php echo $form->textArea($model,'description',array('rows'=>10, 'cols'=>50)); ?>
		<?php echo $form->error($model,'description'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'share'); ?>
		<?php echo $form->textArea($model,'share',array('rows'=>10, 'cols'=>50)); ?>
		<?php echo $form->error($model,'share'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'award'); ?>
		<?php echo $form->textArea($model,'award',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'award'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'thumbnail'); ?>
		<?php echo CHtml::activeFileField($model,'thumbnail'); ?>
		<?php echo $form->error($model,'thumbnail'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'background'); ?>
		<?php echo CHtml::activeFileField($model,'background'); ?>
		<?php echo $form->error($model,'background'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'hit'); ?>
		<?php echo $form->textField($model,'hit'); ?>
		<?php echo $form->error($model,'hit'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'starttime'); ?>
		 
		<?php 
		$this->widget('application.extensions.timepicker.timepicker', array(
		    'model'=>$model,
		    'name'=>'starttime',
		));
		?>
		<?php echo $form->error($model,'starttime'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'endtime'); ?>
		 <?php 
		$this->widget('application.extensions.timepicker.timepicker', array(
		    'model'=>$model,
		    'name'=>'endtime',
		));
		?>

		<?php echo $form->error($model,'endtime'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->